'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	const db = uniCloud.database();
	let user_id = "ef45322e66a1fea70019de6e7f3b97b2";
	let update = await db.collection('uni-id-users').doc(user_id).update({
	
		promotion_id:"7395859406799339583",
		clickid:"B.DP2lmE6safpTcaQjcXoCEcK1LmqNlbwNgsUEfUNEfmcfPjweIjvZZq35UxrvkvkCsfqXzPgbjOMHVTd545ZC9em8wdAcr2hMfiCuRfqKcYJKCV3Xu4EJuAXEniM6JkIVjD",
	})
	//返回数据给客户端
	return event
};
